/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package outros;

import DAO.Configurator;
import Interface.Servidor;
import java.rmi.*;


/**
 *
 * @author victor
 */
public class MainCliente {

    public static void main(String args[]) {
        try {
            Servidor servidor = (Servidor) Naming.lookup("rmi://"+Configurator.getHost()+":21000/servidor");
            System.out.println(servidor.listarHospedes());
            //servidor.cadastrarHospede("victor", "Av. Qualquer", "1123", "asdfasdf@gmail.com");
            //servidor.cadastrarHospedagem(7, 4, 1, null);

        } catch (Exception e) {
            e.printStackTrace();
        }


    }
}
